/***********************************************************************
	filename: 	DaterTransLogin.h
	created:	18/4/2012
	author:		4Ys
	
	purpose:	Defines classes of translator from client to server, 
				specifically for logging in.	            
*************************************************************************/
#ifndef DaterTransLogin_h_
#define DaterTransLogin_h_

#include "DaterTranslator.h"
#include "DaterLinktoSQL.h"
#include "DaterSingleton.h"

namespace Dater
{
	/*!
	\brief
		A father class to translate the order specifically for logging in.
	*/
	class TransLogin : public Translator, public Singleton< TransLogin >
	{

	public:
		/*!
		\brief
			Constructor for TransLogin class
		*/
		TransLogin() : Translator() {_ifRequest = false;}
		
		/*!
		\brief
			the function inherate.
		*/
		virtual bool execute(int& clientUid, std::vector<std::string>& sendMessages, std::vector<int>& sendClientUids);

		virtual bool judge( const char* order );
	};

}

#endif